package com.shen.GOF.abstractFactory;

public class Consumer {
    public static void main(String[] args) {
        System.out.println("apple产品=================");
        IphoneProduct applePhone = new AppleFactory().iphoneProduct();
        applePhone.start();
        RouterProduct appleRouter = new AppleFactory().routerProduct();
        appleRouter.openWiFi();
        System.out.println("huawei产品===============");
        IphoneProduct huaweiPhone = new HuaweiFactory().iphoneProduct();
        huaweiPhone.start();
    }
}
